﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XEvent.Interface
{
    public interface IXContainer
    {
        void Register<TService>() where TService : class, new();

        void Register<TService>(Func<TService> factory) where TService : class;

        TService Resolve<TService>() where TService : class, new();
    }
}
